{{#extends @html/widget/hp/widget.html}}

{{:widget_class}}wg-files{{/:widget_class}}

{{:widget_body}}
	{{!connect "theme/widget/files.css"}}
	{{?widget.content.items}}
	<ul class="list-">
		{{!for widget.content.items do=@:files_item}}{{:files_item}}
		<li class="item-"><a href="{{*file_url}}" title="{{*file_meta.real_fname}}">{{*file_meta.real_fname | truncate 19}}</a>&nbsp;{{*file_meta.file_size|formatfilesize}}</li>
		{{/:files_item}}
	</ul>
	{{?:}}
		<div class="typography"><p>Файлов пока нет</p></div>
	{{/?}}
{{/:widget_body}}
